#ifndef __WINTERRUPTS_H__
#define __WINTERRUPTS_H__

#include <stdint.h>

#ifdef __cplusplus
#include <functional>

using callback_function_t = std::function<void(void)>;
void attachInterrupt(uint32_t pin, callback_function_t callback, uint32_t mode);

#endif

void attachInterrupt(uint32_t pin, void (*callback)(void), uint32_t mode);

void detachInterrupt(uint32_t pin);

#endif // __WINTERRUPTS_H__